import axios from "../index.js";
// 年度培训计划
// 列表
export const trainingYearlyListPage = (data) => {
  return axios.request({
    url: "/plan_training/training-yearly/listPage",
    method: "post",
    data: data
  });
};
// 新增
export const trainingYearlyInsert = (data) => {
  return axios.request({
    url: "/plan_training/training-yearly/insert",
    method: "post",
    data: data
  });
};
// 详情
export const trainingYearlyDetail = (data) => {
  return axios.request({
    url: "/plan_training/training-yearly/detail",
    method: "post",
    data: data
  });
};
// 删除
export const trainingYearlyDel = (data) => {
  return axios.request({
    url: "/plan_training/training-yearly/del",
    method: "post",
    data: data
  });
};
// 导出
export const trainingYearlyUpdate = (data) => {
  return axios.request({
    url: "/plan_training/training-yearly/update",
    method: "post",
    data: data
  });
};
// 导入
export const trainingYearlyUpload = (data) => {
  return axios.request({
    url: "/plan_training/training-yearly/upload",
    method: "post",
    data: data
  });
};
// 导入数据回显
export const trainingYearlyExcelDetail = (data) => {
  return axios.request({
    url: "/plan_training/training-yearly/excelDetail",
    method: "post",
    data: data
  });
};
// 关联年计划
export const trainingYearlyList = (data) => {
  return axios.request({
    url: "/plan_training/training-yearly/list",
    method: "post",
    data: data
  });
};
// 下载模板
export const trainingYearDowmload = (data) => {
  return axios.request({
    url: "/plan_training/training-monthly/dowmload/model",
    method: "get",
    data: data,
    headers: { "Content-Type": "application/x-www-form-urlencoded" },
    responseType: "blob"
  });
};
